<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="menu-form">
    <input type="hidden" name="id" value="${menu.id}">
    <table>
        <tr>
            <td>菜单名称:</td>
            <td><input name="text" value="${menu.text}"></td>
        </tr>
        <tr>
            <td>URL:</td>
            <td><input name="url" value="${menu.url}"></td>
        </tr>
        <tr>
            <td>父菜单:</td>
            <td><input name="parentId" id="parentId" value="${menu.parentId}"></td>
        </tr>
    </table>
</form>

<script type="text/javascript">
    $(function () {
        $("#parentId").combotree({
            url: '<%=request.getContextPath()%>/menu.html?act=tree'
        });
    })
</script>